package com.chilli.cosima.action.logmanager;

import java.io.File;

import com.chilli.cosima.action.BaseSupport;

public class RunLogDeleteAction extends BaseSupport
{

	/**
	 * 注释内容
	 */
	private static final long serialVersionUID = -3538912405407750357L;

	private String name;

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String execute()
	{
		String logRoot = System.getProperty("webapp.root") + "/log/";
		File file = new File(logRoot + getName());
		if (file.exists())
		{
			file.delete();
		}
		return SUCCESS;
	}

}
